import sys
d = {}


def init_d():
    for char in 'abcdefghijklmnopqrstuvwxyz':
        d[char] = 0


def main():
    init_d()
    for line in sys.stdin.readlines():
        for char in line.strip().lower():
            if char not in d.keys():
                continue
            d[char] += 1
    for (k, v) in d.items():
        print(k, v)


if __name__ == '__main__':
    main()
